//该文件是设置一级路由组件

//引入home的二级路由
import home_routes_children from '@/router/routes_two/home';


export default [
    //注册
    {
        path: '/register',
        name: 'register',
        component: () => import('@v/Register.vue')
    },
    //登录
    {
        path: '/login',
        name: 'login',
        component: () => import('@v/Login.vue')
    },
    //首页
    {
        path: '/home',
        name: 'home',
        component: () => import('@v/Home.vue'),
        children: home_routes_children
    },
    //设置个人中心
    {
        path:'/personalCenter',
        name:'personalCenter',
        component:()=> import('@/views/PersonalCenter.vue')
    },
    //设置客服
    {
        path:'/customerService',
        name:'customerService',
        component:()=>import('@/views/CustomerService.vue')
    },
    //设置安全中心
    {
        path:'/securityCenter',
        name:'securityCenter',
        component:()=>import('@/views/SecurityCenter.vue')
    },
    //常见问题
    {
        path:'/commonProblem',
        name:'commonProblem',
        component:()=>import('@/views/CommonProblem.vue')
    },
    //设置notfound  即 没有在路由列表中的页面都使用notfond 意思是没有这个路由，提升用户体验度
    {
        path: '*',
        name: 'notFound',
        component: () => import('@v/NotFound.vue')
    },
    //设置  路由重定向
    {
        path: '/',
        redirect: {
            name: 'home'
        }
    }
]